package Demo1;

public class Teacher extends People implements Running{

    public Teacher(String name, int age) {
        super(name, age);
    }

    @Override
    public void doing() {
        System.out.println("teaching...");
    }

    @Override
    public void eat() {
        System.out.println("eat...");
    }

    @Override
    public void run() {
        System.out.println("run...");
    }

    @Override
    public void fly() {
        System.out.println("fly...");
    }
}
